FROM mopon/alpine-java:latest
MAINTAINER galen.zhang z60014840@163.com

ENV MAVEN_HOME /usr/local/maven/apache-maven-3.3.9
ENV PATH $MAVEN_HOME/bin:$PATH

RUN mkdir -p /usr/local/maven && \
	wget -P /usr/local/maven http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz && \
	tar xzf /usr/local/maven/apache-maven-3.3.9-bin.tar.gz -C /usr/local/maven && \
	rm -rf /usr/local/maven/apache-maven-3.3.9-bin.tar.gz && \
	mkdir -p /root/.m2
ADD settings.xml /root/.m2/settings.xml

	